package com.choosefine.base.attendance.client.device

import org.junit.Test

/**
 * Created by 邱鹏 on 2017/8/29.
 */
fun getRecord(function: () -> Unit) {
    function()
    println("getRecord 函数执行")
}


fun getRecordAndSave() = getRecord {
    println("----------------------->   getRecordAndSave 函数执行      <-----------------------")
}

class FunExtendTest {
    @Test
    fun getRecordAndSaveTest() {
        getRecordAndSave()
    }
}
